package com.dataextend.utils;

import java.util.HashMap;
import java.util.Map;

public class TreeNodeUtils {

    public Map<String, Object> tree(Long id, String label, Long parentId, Object data) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("id", id);
        map.put("label", label);
        map.put("parentId", parentId);
        map.put("children", data);

        return map;
    }
}
